<?php

// mbilling/BillingBundle/Entity/ordersSharedFtp.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity
 */
class ordersSharedFtp
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="string", length=100)
     */
    protected $user;
    
    /**
     * @ORM\Column(type="string", length=300)
     */
    protected $dir;
    
    /**
     * @ORM\Column(type="integer")
     * @assert\Type("numeric")
     */
    protected $order_id;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_active;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $for_remove;
    
    /**
     * @ORM\Column(type="integer", nullable="TRUE")
     * @assert\Type("numeric")
     */
    protected $message_id;

    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setUser($user)
    {
        $this->user = $user;
    }
    public function getUser()
    {
        return $this->user;
    }

    public function setDir($dir)
    {
        $this->dir = $dir;
    }
    public function getDir()
    {
        return $this->dir;
    }
    
    public function setOrderId($order_id)
    {
        $this->order_id = $order_id;
    }
    public function getOrderId()
    {
        return $this->order_id;
    }

    public function setIsActive($is_active)
    {
        $this->is_active = $is_active;
    }
    public function getIsActive()
    {
        return $this->is_active;
    }
    
    public function setForRemove($for_remove)
    {
        $this->for_remove = $for_remove;
    }
    public function getForRemove()
    {
        return $this->for_remove;
    }
    
    public function setMessageId($message_id)
    {
        $this->message_id = $message_id;
    }
    public function getMessageId()
    {
        return $this->message_id;
    }
    
    public function initDefaultEntity()
    {
        $this->setUser('login');
        $this->setDir('/etc');
        $this->setOrderId('1');
        return $this;
    }
}
?>
